package com.ziyun.pop.modules.capital.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ziyun.pop.modules.capital.dao.MerchantFlowDao;
import com.ziyun.pop.modules.capital.entity.MerchantFlowEntity;
import com.ziyun.pop.modules.capital.service.MerchantFlowService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("merchantFlowService")
public class MerchantFlowServiceImpl extends ServiceImpl<MerchantFlowDao, MerchantFlowEntity> implements MerchantFlowService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<MerchantFlowEntity> page = (Page<MerchantFlowEntity>) this.page(
                new Query<MerchantFlowEntity>(params).getPage(),
                new QueryWrapper<MerchantFlowEntity>()
        );

        return new PageUtils(page);
    }

}
